package com.java.zhuiyun.api.idiomAdventureManager.service;

import com.java.zhuiyun.api.idiomAdventureManager.entity.IdiomAdventureQuestionBank;
import com.java.zhuiyun.api.idiomAdventureManager.model.IdiomAdventureQuestionBankModel;
import com.java.zhuiyun.common.errorCode.CommonException;
import com.java.zhuiyun.common.response.CommonResult;
import com.java.zhuiyun.util.pageUtil.PageRequest;

import java.util.List;

/**
 * @InterfaceName IdiomAdventureQuestionBankService
 * @Description TODO 冒险题库管理
 * @Author WX
 * @Date 2023/9/13 9:20
 **/
public interface IdiomAdventureQuestionBankService {
    /*
     * @Author WX
     * @Description 模糊查询
     * @Date 2023/9/13 10:26
     * @Return
     * @param IdiomAdventureQuestionBank PageRequest
     */
    CommonResult selectIdiomAdventureQuestionBankAllByOne(IdiomAdventureQuestionBank idiomAdventureQuestionBank, PageRequest pageRequest);

    /*
     * @Author WX
     * @Description 添加词库
     * @Date 2023/9/13 11:18
     * @Return
     * @param idiomAdventureQuestionBank
     */
    CommonResult addIdiomAdventureQuestionBank(IdiomAdventureQuestionBankModel idiomAdventureQuestionBankModel)  throws CommonException;

    /*
     * @Author WX
     * @Description 查询单个
     * @Date 2023/9/13 14:01
     * @Return
     * @param id
     */
    CommonResult findIdiomAdventureQuestionBankById(Integer id) throws CommonException;

    /*
     * @Author WX
     * @Description 修改单个
     * @Date 2023/9/13 14:07
     * @Return
     * @param idiomAdventureQuestionBank
     */
    CommonResult updateIdiomAdventureQuestionBankById(IdiomAdventureQuestionBankModel idiomAdventureQuestionBankModel) throws CommonException;

    /*
     * @Author WX
     * @Description 删除
     * @Date 2023/9/13 14:17
     * @Return
     * @param id
     */
    CommonResult deleteIdiomAdventureQuestionBankById(Integer id) throws CommonException;

    /*
     * @Author WX
     * @Description 数据库随机查10条
     * @Date 2023/9/14 13:56
     * @Return
     * @param null
     */
    List<IdiomAdventureQuestionBank> selectIdiomAdventureQuestionBankRadomByTen();
}

